#include <iostream>

#include "CLAddThreadPool.h"

using namespace std;

int main()
{
	CLAddThreadPool pool(5);
	pool.Run();
	
	sleep(1);

	cout << "Send adder messages into user thread." << endl;
	int cnt, op1, op2;
	for(cnt = 0; cnt < 1000; cnt++)
	{
		op1 = cnt;
		op2 = cnt + 5;
		
		CLExecutiveNameServer::PostExecutiveMessage("user", new CLAddMessage(op1, op2));
	}
	
	return 0;
}